package com.sunwoda.springbootredis.datasource;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @program: springbootredis
 * @description:
 * @author: SGR
 * @create: 2021-09-24 09:59
 **/
@ConfigurationProperties(prefix = "spring.datasource")
@Component
public class DruidDataSourceBean {

    public DruidDataSourceBean druidDataSource(){
        return new DruidDataSourceBean();
    }
}
